﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GuanYijia.DoMain
{
    /// <summary>
    /// 单据子表
    /// </summary>
    public class Depot_Item
    {
        [Key]
        //主键
        public int itemid {  get; set; }
        //单据主表Id
        public int? documentsid { get; set; }
        //商品id
        public int? productid { get; set; }
        //商品扩展Id
        public int? material_extend_id { get; set; }
        [StringLength(200)]
        //商品计量单位
        public string? material_unit {  get; set; }
        [StringLength(200)]
        //多属性
        public string? sku { get; set; }
        //数量
        public decimal? oper_number {  get; set; }
        //基础数量，如kg、瓶
        public decimal? basic_number {  get; set; }
        //单价
        public decimal? unit_price {  get; set; }
        //含税单价
        public decimal? tax_unit_price {  get; set; }
        //金额
        public decimal? all_price {  get; set; }
        [StringLength(200)]
        //描述
        public string? remark {  get; set; }
        [StringLength(500)]
        //图片
        public string? img {  get; set; }
        //运杂费
        public decimal? incidentals {  get; set; }
        //仓库ID（库存是统计出来的）
        public int? depot_id {  get; set; }
        //调拨时，对方仓库Id
        public int? another_depot_id { get; set; }
        //税率
        public decimal? tax_rate {  get; set; }
        //税额
        public decimal? tax_money {  get; set; }
        //价税合计
        public decimal? tax_last_money {  get; set; }
        [StringLength(100)]
        //自定义字段1-品名
        public string? other_field1 {  get; set; }
        [StringLength(100)]
        //自定义字段2-型号
        public string? other_field2 { get; set;}
        [StringLength(100)]
        //自定义字段3-制造商
        public string? other_field3 { get; set; }
        [StringLength(100)]
        //自定义字段4
        public string? other_field4 { get; set; }
        [StringLength(100)]
        //自定义字段5
        public string? other_field5 { get; set; }
        [StringLength(100)]
        //商品类型
        public string? material_type {  get; set; }
        //租户id
        public int? tenant_id {  get; set; }
        //删除标记，0未删除，1删除，默认0
        public bool? delete_flag { get; set; }=false;
    }
}
